/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wo.cput.pattern.singleton;

import wo.cput.pattern.singleton.*;
import java.util.Date;

/**
 *
 * @author Jameel
 */
public class Singleton {
    
    private static Singleton singleton = null;

    public Singleton() {
        
    }
    
    public static Singleton getInstance() {
        
        if (singleton == null){
            singleton = new Singleton();
        }
        
        return singleton;
    }
    
    public void sayHello(){
        System.out.println("Hello");
    }    
}
